package com.ftg.learn.chapter08.baidicheng.goose;

/**
 * 鹅类
 *
 * @author lijiaxin
 * @version 1.0
 * @date 2023/7/21 14:00
 */

public class Goose1 {

    public void move(Human human){

        Goose1 goose4=new Goose1();
        human.listen(goose4);

        Water water=new Water();
        water.setColor("碧绿的");
        human.look1(water);

       Position position1=new Position();
        position1.setPositionname("脖子");
        position1.setAppearance("弯曲的");
        human.look(position1);

        Position position2=new Position();
        position2.setPositionname("羽毛");
        position2.setAppearance("洁白的");
        human.look(position2);

        Position position3=new Position();
        position3.setPositionname("脚掌");
        position3.setAppearance("红红的");
        human.look(position3);




    }

    public void shout(int n){
        int x = 0;
        while (x++ < n) {
            System.out.println("鹅叫");
        }
    }







}
